<%@ page contentType="text/html;charset=UTF-8" %>

<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Insert title here</title>
<style type="text/css">
.error {
	color: #ff0000;
}
</style>
</head>
<body>
	<jsp:include page="/WEB-INF/tags/header.jsp"/>
	<form:form action="login" method="post" commandName="loginForm">
		<table border="0" style="margin: 20px 0px 20px 0px">
			<tr>
				<td><spring:message code="login.userName"/></td>
				<td><form:input type="text" path="user.userName" /></td>
				<td>
					<form:errors path="user.userName" cssClass="error"/>
				</td>
			</tr>
			<tr>
				<td><spring:message code="login.password"/></td>
				<td><form:input type="text" path="user.password" /></td>
				<td>
					<form:errors path="user.password"  cssClass="error"/>
				</td>
			</tr>
			<tr>
				<td><input type="submit" value="Submit" /></td>
				<td></td>
				<td></td>
			</tr>
		</table>
	</form:form>
	<jsp:include page="/WEB-INF/tags/footer.jsp"></jsp:include>
</body>
</html>